<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SPHinXsys: SPHINXsys/src/shared/io_system/in_output.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">SPHinXsys
   &#160;<span id="projectnumber">alpha version</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_3dc1dabd28ba78e072d14d3fcfc90454.html">SPHINXsys</a></li><li class="navelem"><a class="el" href="dir_48ea983704c43b6d88c1fa3f4d09e369.html">src</a></li><li class="navelem"><a class="el" href="dir_0a0d9ef1793521534f0094f317758287.html">shared</a></li><li class="navelem"><a class="el" href="dir_1e014473a82d797949272b48d923a4d8.html">io_system</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">in_output.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="in__output_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/* -------------------------------------------------------------------------*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">*                               SPHinXsys                                   *</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">* --------------------------------------------------------------------------*</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">* SPHinXsys (pronunciation: s&#39;finksis) is an acronym from Smoothed Particle *</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">* Hydrodynamics for industrial compleX systems. It provides C++ APIs for    *</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">* physical accurate simulation and aims to model coupled industrial dynamic *</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">* systems including fluid, solid, multi-body dynamics and beyond with SPH   *</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">* (smoothed particle hydrodynamics), a meshless computational method using  *</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">* particle discretization.                                                  *</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">*                                                                           *</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">* SPHinXsys is partially funded by German Research Foundation               *</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">* (Deutsche Forschungsgemeinschaft) DFG HU1527/6-1, HU1527/10-1             *</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment">* and HU1527/12-1.                                                          *</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">*                                                                           *</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">* Portions copyright (c) 2017-2020 Technical University of Munich and       *</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment">* the authors&#39; affiliations.                                                *</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment">*                                                                           *</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">* Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); you may   *</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment">* not use this file except in compliance with the License. You may obtain a *</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment">* copy of the License at http://www.apache.org/licenses/LICENSE-2.0.        *</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment">*                                                                           *</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment">* --------------------------------------------------------------------------*/</span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#pragma once</span></div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#define _SILENCE_EXPERIMENTAL_FILESYSTEM_DEPRECATION_WARNING</span></div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="preprocessor">#include &quot;base_data_package.h&quot;</span></div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="sph__data__conainers_8h.html">sph_data_conainers.h</a>&quot;</span></div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="all__physical__dynamics_8h.html">all_physical_dynamics.h</a>&quot;</span></div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160; </div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="preprocessor">#include &quot;SimTKcommon.h&quot;</span></div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="preprocessor">#include &quot;SimTKmath.h&quot;</span></div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="preprocessor">#include &quot;Simbody.h&quot;</span></div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="preprocessor">#include &lt;fstream&gt;</span></div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="preprocessor">#ifdef __APPLE__</span></div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="preprocessor">#include &lt;boost/filesystem.hpp&gt;</span></div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="keyword">namespace </span>fs = boost::filesystem;</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="preprocessor">#else</span></div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="preprocessor">#include &lt;experimental/filesystem&gt;</span></div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;<span class="keyword">namespace </span>fs = std::experimental::filesystem;</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespace_s_p_h.html">SPH</a> {</div><div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_in___output.html">   57</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_s_p_h_1_1_in___output.html">In_Output</a></div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    {</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;        <a class="code" href="class_s_p_h_1_1_in___output.html">In_Output</a>(<a class="code" href="class_s_p_h_1_1_s_p_h_system.html">SPHSystem</a> &amp;sph_system);</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;        <span class="keyword">virtual</span> ~<a class="code" href="class_s_p_h_1_1_in___output.html">In_Output</a>() {};</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;        <a class="code" href="class_s_p_h_1_1_s_p_h_system.html">SPHSystem</a> &amp;sph_system_;</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;        std::string output_folder_;</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;        std::string restart_folder_;</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;        std::string reload_folder_;</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;        std::string restart_step_;</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    };</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;</div><div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_body_states_i_o.html">   74</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_s_p_h_1_1_body_states_i_o.html">BodyStatesIO</a></div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    {</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    <span class="keyword">protected</span>:</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;        <a class="code" href="class_s_p_h_1_1_in___output.html">In_Output</a> &amp;in_output_;</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;        <a class="code" href="class_s_p_h_1_1_s_p_h_body.html">SPHBody</a> *body_;</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;        <a class="code" href="namespace_s_p_h.html#ab8b3224d963eb73d7febbf0d5346f429">SPHBodyVector</a> bodies_;</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;        <a class="code" href="class_s_p_h_1_1_body_states_i_o.html">BodyStatesIO</a>(<a class="code" href="class_s_p_h_1_1_in___output.html">In_Output</a> &amp;in_output, <a class="code" href="class_s_p_h_1_1_s_p_h_body.html">SPHBody</a> *body)</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;            : in_output_(in_output), body_(body) {};</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;        <a class="code" href="class_s_p_h_1_1_body_states_i_o.html">BodyStatesIO</a>(<a class="code" href="class_s_p_h_1_1_in___output.html">In_Output</a>&amp; in_output, <a class="code" href="namespace_s_p_h.html#ab8b3224d963eb73d7febbf0d5346f429">SPHBodyVector</a> bodies)</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;            : in_output_(in_output), bodies_(bodies), body_(bodies[0]) {};</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;        <span class="keyword">virtual</span> ~<a class="code" href="class_s_p_h_1_1_body_states_i_o.html">BodyStatesIO</a>() {};</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;    };</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;</div><div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_write_body_states.html">   92</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_s_p_h_1_1_write_body_states.html">WriteBodyStates</a> : <span class="keyword">public</span> <a class="code" href="class_s_p_h_1_1_body_states_i_o.html">BodyStatesIO</a></div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;    {</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;        <a class="code" href="class_s_p_h_1_1_write_body_states.html">WriteBodyStates</a>(<a class="code" href="class_s_p_h_1_1_in___output.html">In_Output</a> &amp;in_output, <a class="code" href="class_s_p_h_1_1_s_p_h_body.html">SPHBody</a> *body)</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;            : <a class="code" href="class_s_p_h_1_1_body_states_i_o.html">BodyStatesIO</a>(in_output, body) {};</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;        <a class="code" href="class_s_p_h_1_1_write_body_states.html">WriteBodyStates</a>(<a class="code" href="class_s_p_h_1_1_in___output.html">In_Output</a> &amp;in_output, <a class="code" href="namespace_s_p_h.html#ab8b3224d963eb73d7febbf0d5346f429">SPHBodyVector</a> bodies)</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;            : <a class="code" href="class_s_p_h_1_1_body_states_i_o.html">BodyStatesIO</a>(in_output, bodies) {};</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;        <span class="keyword">virtual</span> ~<a class="code" href="class_s_p_h_1_1_write_body_states.html">WriteBodyStates</a>() {};</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> WriteToFile(Real time) = 0;</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;    };</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;</div><div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_read_body_states.html">  108</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_s_p_h_1_1_read_body_states.html">ReadBodyStates</a> : <span class="keyword">public</span> <a class="code" href="class_s_p_h_1_1_body_states_i_o.html">BodyStatesIO</a></div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;    {</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;        <a class="code" href="class_s_p_h_1_1_read_body_states.html">ReadBodyStates</a>(<a class="code" href="class_s_p_h_1_1_in___output.html">In_Output</a> &amp;in_output, <a class="code" href="class_s_p_h_1_1_s_p_h_body.html">SPHBody</a> *body)</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;            : <a class="code" href="class_s_p_h_1_1_body_states_i_o.html">BodyStatesIO</a>(in_output, body) {};</div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;        <a class="code" href="class_s_p_h_1_1_read_body_states.html">ReadBodyStates</a>(<a class="code" href="class_s_p_h_1_1_in___output.html">In_Output</a> &amp;in_output, <a class="code" href="namespace_s_p_h.html#ab8b3224d963eb73d7febbf0d5346f429">SPHBodyVector</a> bodies)</div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;            : <a class="code" href="class_s_p_h_1_1_body_states_i_o.html">BodyStatesIO</a>(in_output, bodies) {};</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;        <span class="keyword">virtual</span> ~<a class="code" href="class_s_p_h_1_1_read_body_states.html">ReadBodyStates</a>() {};</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> ReadFromFile(<span class="keywordtype">size_t</span> iteration_step) = 0;</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;    };</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;    <span class="keyword">template</span>&lt;<span class="keyword">class</span> MobilizedBodyType&gt;</div><div class="line"><a name="l00124"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_sim_body_states_i_o.html">  124</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_s_p_h_1_1_sim_body_states_i_o.html">SimBodyStatesIO</a></div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;    {</div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;    <span class="keyword">protected</span>:</div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;        <a class="code" href="class_s_p_h_1_1_in___output.html">In_Output</a> &amp;in_output_;</div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;        SimTK::RungeKuttaMersonIntegrator&amp; integ_;</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;        MobilizedBodyType&amp; mobody_;</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;        <a class="code" href="class_s_p_h_1_1_sim_body_states_i_o.html">SimBodyStatesIO</a>(<a class="code" href="class_s_p_h_1_1_in___output.html">In_Output</a>&amp; in_output, SimTK::RungeKuttaMersonIntegrator&amp; integ, MobilizedBodyType&amp; mobody)</div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;            : in_output_(in_output),integ_(integ), mobody_(mobody) {};</div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;        <span class="keyword">virtual</span> ~<a class="code" href="class_s_p_h_1_1_sim_body_states_i_o.html">SimBodyStatesIO</a>() {};</div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;    };</div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;</div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;    <span class="keyword">template</span>&lt;<span class="keyword">class</span> MobilizedBodyType&gt;</div><div class="line"><a name="l00141"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_write_sim_body_states.html">  141</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_s_p_h_1_1_write_sim_body_states.html">WriteSimBodyStates</a> : <span class="keyword">public</span> <a class="code" href="class_s_p_h_1_1_sim_body_states_i_o.html">SimBodyStatesIO</a>&lt;MobilizedBodyType&gt;</div><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;    {</div><div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;        <a class="code" href="class_s_p_h_1_1_write_sim_body_states.html">WriteSimBodyStates</a>(<a class="code" href="class_s_p_h_1_1_in___output.html">In_Output</a>&amp; in_output, SimTK::RungeKuttaMersonIntegrator&amp; integ, MobilizedBodyType&amp; mobody)</div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;            : <a class="code" href="class_s_p_h_1_1_sim_body_states_i_o.html">SimBodyStatesIO&lt;MobilizedBodyType&gt;</a>(in_output,integ, mobody) {};</div><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;        <span class="keyword">virtual</span> ~<a class="code" href="class_s_p_h_1_1_write_sim_body_states.html">WriteSimBodyStates</a>() {};</div><div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;</div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> WriteToFile(Real time) = 0;</div><div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;    };</div><div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;</div><div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;    <span class="keyword">template</span>&lt;<span class="keyword">class</span> MobilizedBodyType&gt;</div><div class="line"><a name="l00156"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_read_sim_body_states.html">  156</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_s_p_h_1_1_read_sim_body_states.html">ReadSimBodyStates</a> : <span class="keyword">public</span> <a class="code" href="class_s_p_h_1_1_sim_body_states_i_o.html">SimBodyStatesIO</a>&lt;MobilizedBodyType&gt;</div><div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;    {</div><div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;        <a class="code" href="class_s_p_h_1_1_read_sim_body_states.html">ReadSimBodyStates</a>(<a class="code" href="class_s_p_h_1_1_in___output.html">In_Output</a>&amp; in_output, MobilizedBodyType* mobody)</div><div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;            : <a class="code" href="class_s_p_h_1_1_sim_body_states_i_o.html">SimBodyStatesIO&lt;MobilizedBodyType&gt;</a>(in_output, mobody) {};</div><div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;        <a class="code" href="class_s_p_h_1_1_read_sim_body_states.html">ReadSimBodyStates</a>(<a class="code" href="class_s_p_h_1_1_in___output.html">In_Output</a>&amp; in_output, StdVec&lt;MobilizedBodyType*&gt; mobodies)</div><div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;            : <a class="code" href="class_s_p_h_1_1_sim_body_states_i_o.html">SimBodyStatesIO&lt;MobilizedBodyType&gt;</a>(in_output, mobodies) {};</div><div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;        <span class="keyword">virtual</span> ~<a class="code" href="class_s_p_h_1_1_read_sim_body_states.html">ReadSimBodyStates</a>() {};</div><div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;</div><div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> ReadFromFile(<span class="keywordtype">size_t</span> iteration_step) = 0;</div><div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;    };</div><div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;</div><div class="line"><a name="l00174"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_write_body_states_to_vtu.html">  174</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_s_p_h_1_1_write_body_states_to_vtu.html">WriteBodyStatesToVtu</a> : <span class="keyword">public</span> <a class="code" href="class_s_p_h_1_1_write_body_states.html">WriteBodyStates</a></div><div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;    {</div><div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;        <a class="code" href="class_s_p_h_1_1_write_body_states_to_vtu.html">WriteBodyStatesToVtu</a>(<a class="code" href="class_s_p_h_1_1_in___output.html">In_Output</a>&amp; in_output, <a class="code" href="namespace_s_p_h.html#ab8b3224d963eb73d7febbf0d5346f429">SPHBodyVector</a> bodies)</div><div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;            : <a class="code" href="class_s_p_h_1_1_write_body_states.html">WriteBodyStates</a>(in_output, bodies) {};</div><div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;        <span class="keyword">virtual</span> ~<a class="code" href="class_s_p_h_1_1_write_body_states_to_vtu.html">WriteBodyStatesToVtu</a>() {};</div><div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;</div><div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> WriteToFile(Real time) <span class="keyword">override</span>;</div><div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;    };</div><div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;    </div><div class="line"><a name="l00189"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_write_body_states_to_plt.html">  189</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_s_p_h_1_1_write_body_states_to_plt.html">WriteBodyStatesToPlt</a> : <span class="keyword">public</span> <a class="code" href="class_s_p_h_1_1_write_body_states.html">WriteBodyStates</a></div><div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;    {</div><div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;        <a class="code" href="class_s_p_h_1_1_write_body_states_to_plt.html">WriteBodyStatesToPlt</a>(<a class="code" href="class_s_p_h_1_1_in___output.html">In_Output</a>&amp; in_output, <a class="code" href="namespace_s_p_h.html#ab8b3224d963eb73d7febbf0d5346f429">SPHBodyVector</a> bodies)</div><div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;            : <a class="code" href="class_s_p_h_1_1_write_body_states.html">WriteBodyStates</a>(in_output, bodies) {};;</div><div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;        <span class="keyword">virtual</span> ~<a class="code" href="class_s_p_h_1_1_write_body_states_to_plt.html">WriteBodyStatesToPlt</a>() {};</div><div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;</div><div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> WriteToFile(Real time) <span class="keyword">override</span>;</div><div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;    };</div><div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;</div><div class="line"><a name="l00204"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_write_to_vtu_if_velocity_out_of_bound.html">  204</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_s_p_h_1_1_write_to_vtu_if_velocity_out_of_bound.html">WriteToVtuIfVelocityOutOfBound</a></div><div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;        : <span class="keyword">public</span> <a class="code" href="class_s_p_h_1_1_write_body_states_to_vtu.html">WriteBodyStatesToVtu</a></div><div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;    {</div><div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;    <span class="keyword">protected</span>:</div><div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;        StdVec&lt;VelocityBoundCheck *&gt; check_bodies_;</div><div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;        <a class="code" href="class_s_p_h_1_1_write_to_vtu_if_velocity_out_of_bound.html">WriteToVtuIfVelocityOutOfBound</a>(<a class="code" href="class_s_p_h_1_1_in___output.html">In_Output</a>&amp; in_output,</div><div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;            <a class="code" href="namespace_s_p_h.html#ab8b3224d963eb73d7febbf0d5346f429">SPHBodyVector</a> bodies, Real velocity_bound);</div><div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;        <span class="keyword">virtual</span> ~<a class="code" href="class_s_p_h_1_1_write_to_vtu_if_velocity_out_of_bound.html">WriteToVtuIfVelocityOutOfBound</a>() {};</div><div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;</div><div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;        <span class="keywordtype">bool</span> out_of_bound_;</div><div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> WriteToFile(Real time) <span class="keyword">override</span>;</div><div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;    };</div><div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;</div><div class="line"><a name="l00222"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_write_body_mesh_to_plt.html">  222</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_s_p_h_1_1_write_body_mesh_to_plt.html">WriteBodyMeshToPlt</a> : <span class="keyword">public</span> <a class="code" href="class_s_p_h_1_1_write_body_states.html">WriteBodyStates</a></div><div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;    {</div><div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;    <span class="keyword">protected</span>:</div><div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;        std::string filefullpath_;</div><div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;        <a class="code" href="class_s_p_h_1_1_write_body_mesh_to_plt.html">WriteBodyMeshToPlt</a>(<a class="code" href="class_s_p_h_1_1_in___output.html">In_Output</a>&amp; in_output, <a class="code" href="class_s_p_h_1_1_s_p_h_body.html">SPHBody</a> *body);</div><div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;        <span class="keyword">virtual</span> ~<a class="code" href="class_s_p_h_1_1_write_body_mesh_to_plt.html">WriteBodyMeshToPlt</a>() {};</div><div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;</div><div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> WriteToFile(Real time = 0.0) <span class="keyword">override</span>;</div><div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;    };</div><div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;</div><div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;    <span class="keyword">template</span> &lt;<span class="keyword">class </span>DataType, <span class="keyword">class </span>TargetParticlesType, <span class="keyword">class </span>TargetDataType,</div><div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;        StdLargeVec&lt;TargetDataType&gt; TargetParticlesType:: * TrgtDataMemPtr, DataType TargetDataType:: * TrgtMemPtr&gt;</div><div class="line"><a name="l00239"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_write_an_observed_quantity.html">  239</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_s_p_h_1_1_write_an_observed_quantity.html">WriteAnObservedQuantity</a> : <span class="keyword">public</span> <a class="code" href="class_s_p_h_1_1_write_body_states.html">WriteBodyStates</a>,</div><div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;        <span class="keyword">public</span> <a class="code" href="class_s_p_h_1_1observer__dynamics_1_1_observing_a_quantity.html">observer_dynamics::ObservingAQuantity</a>&lt;DataType, TargetParticlesType, TargetDataType, TrgtDataMemPtr, TrgtMemPtr&gt;</div><div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;    {</div><div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;    <span class="keyword">protected</span>:</div><div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;        <a class="code" href="class_s_p_h_1_1_s_p_h_body.html">SPHBody</a>* observer_;</div><div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;        std::string filefullpath_;</div><div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;</div><div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;        <span class="keywordtype">void</span> writeFileHead(std::ofstream&amp; out_file, Real&amp; observed_quantity, <span class="keywordtype">string</span> quantity_name, <span class="keywordtype">size_t</span> i) {</div><div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;            out_file &lt;&lt; <span class="stringliteral">&quot;  &quot;</span> &lt;&lt; quantity_name &lt;&lt; <span class="stringliteral">&quot;[&quot;</span> &lt;&lt; i &lt;&lt; <span class="stringliteral">&quot;]&quot;</span> &lt;&lt; <span class="stringliteral">&quot; &quot;</span>;</div><div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;        };</div><div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;        <span class="keywordtype">void</span> writeDataToFile(std::ofstream&amp; out_file, Real&amp; observed_quantity) {</div><div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;            out_file &lt;&lt; <span class="stringliteral">&quot;  &quot;</span> &lt;&lt; observed_quantity &lt;&lt; <span class="stringliteral">&quot; &quot;</span>;</div><div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;        };</div><div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;</div><div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;        <span class="keywordtype">void</span> writeFileHead(std::ofstream&amp; out_file, Vecd&amp; observed_quantity, <span class="keywordtype">string</span> quantity_name, <span class="keywordtype">size_t</span> i) {</div><div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;            <span class="keywordflow">for</span> (<span class="keywordtype">int</span> j = 0; j &lt; observed_quantity.size(); ++j)</div><div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;                out_file &lt;&lt; <span class="stringliteral">&quot;  &quot;</span> &lt;&lt; quantity_name &lt;&lt;<span class="stringliteral">&quot;[&quot;</span> &lt;&lt; i &lt;&lt; <span class="stringliteral">&quot;][&quot;</span> &lt;&lt; j &lt;&lt; <span class="stringliteral">&quot;]&quot;</span> &lt;&lt; <span class="stringliteral">&quot; &quot;</span>;</div><div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;        };</div><div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;        <span class="keywordtype">void</span> writeDataToFile(std::ofstream&amp; out_file, Vecd&amp; observed_quantity) {</div><div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;            <span class="keywordflow">for</span> (<span class="keywordtype">int</span> j = 0; j &lt; observed_quantity.size(); ++j)</div><div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;                out_file &lt;&lt; <span class="stringliteral">&quot;  &quot;</span> &lt;&lt; observed_quantity[j] &lt;&lt; <span class="stringliteral">&quot; &quot;</span>;</div><div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;        };</div><div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;</div><div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;        <a class="code" href="class_s_p_h_1_1_write_an_observed_quantity.html">WriteAnObservedQuantity</a>(<span class="keywordtype">string</span> quantity_name, <a class="code" href="class_s_p_h_1_1_in___output.html">In_Output</a>&amp; in_output, <a class="code" href="class_s_p_h_1_1_s_p_h_body_contact_relation.html">SPHBodyContactRelation</a>* body_contact_relation)</div><div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;            : <a class="code" href="class_s_p_h_1_1_write_body_states.html">WriteBodyStates</a>(in_output, body_contact_relation-&gt;body_), observer_(body_contact_relation-&gt;body_),</div><div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;            <a class="code" href="class_s_p_h_1_1observer__dynamics_1_1_observing_a_quantity.html">observer_dynamics::ObservingAQuantity&lt;DataType, TargetParticlesType, TargetDataType, TrgtDataMemPtr, TrgtMemPtr&gt;</a>(body_contact_relation)</div><div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;        {</div><div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;            filefullpath_ = in_output_.output_folder_ + <span class="stringliteral">&quot;/&quot;</span> + observer_-&gt;<a class="code" href="class_s_p_h_1_1_s_p_h_body.html#a76cf8eb34f36cd098f567268cc1c4354">GetBodyName</a>()</div><div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;                + <span class="stringliteral">&quot;_&quot;</span> + quantity_name + <span class="stringliteral">&quot;_&quot;</span> + in_output_.restart_step_ + <span class="stringliteral">&quot;.dat&quot;</span>;</div><div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;            std::ofstream out_file(filefullpath_.c_str(), ios::app);</div><div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;            out_file &lt;&lt; <span class="stringliteral">&quot;run_time&quot;</span> &lt;&lt; <span class="stringliteral">&quot;   &quot;</span>;</div><div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;            <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i = 0; i != observer_-&gt;<a class="code" href="class_s_p_h_1_1_s_p_h_body.html#aab6ade081b3bf9a260dda2d980b5a98f">number_of_particles_</a>; ++i)</div><div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;            {</div><div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;                writeFileHead(out_file, this-&gt;<a class="code" href="class_s_p_h_1_1observer__dynamics_1_1_observing_a_quantity.html#ac7c700df625fac6dfe6999301e4f83ad">observed_quantities_</a>[i], quantity_name, i);</div><div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;            }</div><div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;            out_file &lt;&lt; <span class="stringliteral">&quot;\n&quot;</span>;</div><div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;            out_file.close();</div><div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;        };</div><div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;        <span class="keyword">virtual</span> ~<a class="code" href="class_s_p_h_1_1_write_an_observed_quantity.html">WriteAnObservedQuantity</a>() {};</div><div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;</div><div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> WriteToFile(Real time = 0.0)<span class="keyword"> override </span></div><div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;<span class="keyword">        </span>{</div><div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;            this-&gt;parallel_exec();</div><div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;            std::ofstream out_file(filefullpath_.c_str(), ios::app);</div><div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;            out_file &lt;&lt; time &lt;&lt; <span class="stringliteral">&quot;   &quot;</span>;</div><div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;            <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i = 0; i != observer_-&gt;<a class="code" href="class_s_p_h_1_1_s_p_h_body.html#aab6ade081b3bf9a260dda2d980b5a98f">number_of_particles_</a>; ++i)</div><div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;            {</div><div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;                writeDataToFile(out_file, this-&gt;<a class="code" href="class_s_p_h_1_1observer__dynamics_1_1_observing_a_quantity.html#ac7c700df625fac6dfe6999301e4f83ad">observed_quantities_</a>[i]);</div><div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;            }</div><div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;            out_file &lt;&lt; <span class="stringliteral">&quot;\n&quot;</span>;</div><div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;            out_file.close();</div><div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;        };</div><div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;    };</div><div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;</div><div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;    <span class="keyword">template</span> &lt;<span class="keyword">class</span> DiffusionReactionParticlesType&gt;</div><div class="line"><a name="l00299"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_write_observed_diffusion_reaction_quantity.html">  299</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_s_p_h_1_1_write_observed_diffusion_reaction_quantity.html">WriteObservedDiffusionReactionQuantity</a></div><div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;        : <span class="keyword">public</span> <a class="code" href="class_s_p_h_1_1_write_body_states.html">WriteBodyStates</a>,</div><div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;        <span class="keyword">public</span> <a class="code" href="class_s_p_h_1_1observer__dynamics_1_1_observing_a_diffusion_reaction_quantity.html">observer_dynamics::ObservingADiffusionReactionQuantity</a>&lt;DiffusionReactionParticlesType&gt;</div><div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160;    {</div><div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;    <span class="keyword">protected</span>:</div><div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;        <a class="code" href="class_s_p_h_1_1_s_p_h_body.html">SPHBody</a>* observer_;</div><div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;        std::string filefullpath_;</div><div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00308"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_write_observed_diffusion_reaction_quantity.html#a0a1773a63c40d3f2f5c56b8f06dc7e94">  308</a></span>&#160;        <a class="code" href="class_s_p_h_1_1_write_observed_diffusion_reaction_quantity.html#a0a1773a63c40d3f2f5c56b8f06dc7e94">WriteObservedDiffusionReactionQuantity</a>(<span class="keywordtype">string</span> species_name, <a class="code" href="class_s_p_h_1_1_in___output.html">In_Output</a>&amp; in_output, <a class="code" href="class_s_p_h_1_1_s_p_h_body_contact_relation.html">SPHBodyContactRelation</a>* body_contact_relation)</div><div class="line"><a name="l00309"></a><span class="lineno">  309</span>&#160;            : <a class="code" href="class_s_p_h_1_1_write_body_states.html">WriteBodyStates</a>(in_output, body_contact_relation-&gt;body_), observer_(body_contact_relation-&gt;body_),</div><div class="line"><a name="l00310"></a><span class="lineno">  310</span>&#160;            observer_dynamics::ObservingADiffusionReactionQuantity&lt;DiffusionReactionParticlesType&gt;(species_name, body_contact_relation)</div><div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160;        {</div><div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160;            filefullpath_ = in_output_.output_folder_ + <span class="stringliteral">&quot;/&quot;</span> + observer_-&gt;<a class="code" href="class_s_p_h_1_1_s_p_h_body.html#a76cf8eb34f36cd098f567268cc1c4354">GetBodyName</a>()</div><div class="line"><a name="l00313"></a><span class="lineno">  313</span>&#160;                + <span class="stringliteral">&quot;_&quot;</span> + species_name + <span class="stringliteral">&quot;_&quot;</span> + in_output_.restart_step_ + <span class="stringliteral">&quot;.dat&quot;</span>;</div><div class="line"><a name="l00314"></a><span class="lineno">  314</span>&#160;            std::ofstream out_file(filefullpath_.c_str(), ios::app);</div><div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160;            out_file &lt;&lt; <span class="stringliteral">&quot;run_time&quot;</span> &lt;&lt; <span class="stringliteral">&quot;   &quot;</span>;</div><div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;            <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i = 0; i != observer_-&gt;<a class="code" href="class_s_p_h_1_1_s_p_h_body.html#aab6ade081b3bf9a260dda2d980b5a98f">number_of_particles_</a>; ++i)</div><div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160;            {</div><div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160;                out_file &lt;&lt; <span class="stringliteral">&quot;  &quot;</span> &lt;&lt; species_name &lt;&lt; <span class="stringliteral">&quot;[&quot;</span> &lt;&lt; i &lt;&lt; <span class="stringliteral">&quot;]&quot;</span> &lt;&lt; <span class="stringliteral">&quot; &quot;</span>;</div><div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160;            }</div><div class="line"><a name="l00320"></a><span class="lineno">  320</span>&#160;            out_file &lt;&lt; <span class="stringliteral">&quot;\n&quot;</span>;</div><div class="line"><a name="l00321"></a><span class="lineno">  321</span>&#160;            out_file.close();</div><div class="line"><a name="l00322"></a><span class="lineno">  322</span>&#160;        };</div><div class="line"><a name="l00323"></a><span class="lineno">  323</span>&#160;</div><div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160;        <span class="keyword">virtual</span> ~<a class="code" href="class_s_p_h_1_1_write_observed_diffusion_reaction_quantity.html">WriteObservedDiffusionReactionQuantity</a>() {};</div><div class="line"><a name="l00329"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_write_observed_diffusion_reaction_quantity.html#a812b65571f0a54bf7430f9641e7aa3a6">  329</a></span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_s_p_h_1_1_write_observed_diffusion_reaction_quantity.html#a812b65571f0a54bf7430f9641e7aa3a6">WriteToFile</a>(Real time)<span class="keyword"> override </span></div><div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160;<span class="keyword">        </span>{</div><div class="line"><a name="l00331"></a><span class="lineno">  331</span>&#160;            this-&gt;parallel_exec();</div><div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160;            std::ofstream out_file(filefullpath_.c_str(), ios::app);</div><div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160;            out_file &lt;&lt; time &lt;&lt; <span class="stringliteral">&quot;   &quot;</span>;</div><div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160;            <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i = 0; i != observer_-&gt;<a class="code" href="class_s_p_h_1_1_s_p_h_body.html#aab6ade081b3bf9a260dda2d980b5a98f">number_of_particles_</a>; ++i)</div><div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;            {</div><div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160;                out_file &lt;&lt; <span class="stringliteral">&quot;  &quot;</span> &lt;&lt; this-&gt;<a class="code" href="class_s_p_h_1_1observer__dynamics_1_1_observing_a_diffusion_reaction_quantity.html#a8a10412badcd4f261d3587c4ee4a536b">observed_quantities_</a>[i] &lt;&lt; <span class="stringliteral">&quot; &quot;</span>;</div><div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160;            }</div><div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160;            out_file &lt;&lt; <span class="stringliteral">&quot;\n&quot;</span>;</div><div class="line"><a name="l00339"></a><span class="lineno">  339</span>&#160;            out_file.close();</div><div class="line"><a name="l00340"></a><span class="lineno">  340</span>&#160;        };</div><div class="line"><a name="l00341"></a><span class="lineno">  341</span>&#160;    };</div><div class="line"><a name="l00342"></a><span class="lineno">  342</span>&#160;</div><div class="line"><a name="l00347"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_write_total_mechanical_energy.html">  347</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_s_p_h_1_1_write_total_mechanical_energy.html">WriteTotalMechanicalEnergy</a> </div><div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160;        : <span class="keyword">public</span> <a class="code" href="class_s_p_h_1_1_write_body_states.html">WriteBodyStates</a>, <span class="keyword">public</span> <a class="code" href="class_s_p_h_1_1fluid__dynamics_1_1_total_mechanical_energy.html">fluid_dynamics::TotalMechanicalEnergy</a></div><div class="line"><a name="l00349"></a><span class="lineno">  349</span>&#160;    {</div><div class="line"><a name="l00350"></a><span class="lineno">  350</span>&#160;    <span class="keyword">protected</span>:</div><div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160;        std::string filefullpath_;</div><div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00353"></a><span class="lineno">  353</span>&#160;        <a class="code" href="class_s_p_h_1_1_write_total_mechanical_energy.html">WriteTotalMechanicalEnergy</a>(<a class="code" href="class_s_p_h_1_1_in___output.html">In_Output</a>&amp; in_output, <a class="code" href="class_s_p_h_1_1_fluid_body.html">FluidBody</a>* water_block, <a class="code" href="class_s_p_h_1_1_gravity.html">Gravity</a>* gravity);</div><div class="line"><a name="l00354"></a><span class="lineno">  354</span>&#160;        <span class="keyword">virtual</span> ~<a class="code" href="class_s_p_h_1_1_write_total_mechanical_energy.html">WriteTotalMechanicalEnergy</a>() {};</div><div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> WriteToFile(Real time = 0.0) <span class="keyword">override</span>;</div><div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160;    };</div><div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;</div><div class="line"><a name="l00362"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_write_maximum_speed.html">  362</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_s_p_h_1_1_write_maximum_speed.html">WriteMaximumSpeed</a> : <span class="keyword">public</span> <a class="code" href="class_s_p_h_1_1_write_body_states.html">WriteBodyStates</a>, <span class="keyword">public</span> <a class="code" href="class_s_p_h_1_1_maximum_speed.html">MaximumSpeed</a></div><div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160;    {</div><div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160;    <span class="keyword">protected</span>:</div><div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;        std::string filefullpath_;</div><div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00367"></a><span class="lineno">  367</span>&#160;        <a class="code" href="class_s_p_h_1_1_write_maximum_speed.html">WriteMaximumSpeed</a>(<a class="code" href="class_s_p_h_1_1_in___output.html">In_Output</a>&amp; in_output, <a class="code" href="class_s_p_h_1_1_s_p_h_body.html">SPHBody</a>* sph_body);</div><div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160;        <span class="keyword">virtual</span> ~<a class="code" href="class_s_p_h_1_1_write_maximum_speed.html">WriteMaximumSpeed</a>() {};</div><div class="line"><a name="l00369"></a><span class="lineno">  369</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> WriteToFile(Real time = 0.0) <span class="keyword">override</span>;</div><div class="line"><a name="l00370"></a><span class="lineno">  370</span>&#160;    };</div><div class="line"><a name="l00371"></a><span class="lineno">  371</span>&#160;</div><div class="line"><a name="l00376"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_write_total_viscous_force_on_solid.html">  376</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_s_p_h_1_1_write_total_viscous_force_on_solid.html">WriteTotalViscousForceOnSolid</a></div><div class="line"><a name="l00377"></a><span class="lineno">  377</span>&#160;        : <span class="keyword">public</span> <a class="code" href="class_s_p_h_1_1_write_body_states.html">WriteBodyStates</a>, <span class="keyword">public</span> <a class="code" href="class_s_p_h_1_1solid__dynamics_1_1_total_viscous_force_on_solid.html">solid_dynamics::TotalViscousForceOnSolid</a></div><div class="line"><a name="l00378"></a><span class="lineno">  378</span>&#160;    {</div><div class="line"><a name="l00379"></a><span class="lineno">  379</span>&#160;    <span class="keyword">protected</span>:</div><div class="line"><a name="l00380"></a><span class="lineno">  380</span>&#160;        <span class="keywordtype">size_t</span> dimension_;</div><div class="line"><a name="l00381"></a><span class="lineno">  381</span>&#160;        std::string filefullpath_;</div><div class="line"><a name="l00382"></a><span class="lineno">  382</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00383"></a><span class="lineno">  383</span>&#160;        <a class="code" href="class_s_p_h_1_1_write_total_viscous_force_on_solid.html">WriteTotalViscousForceOnSolid</a>(<a class="code" href="class_s_p_h_1_1_in___output.html">In_Output</a>&amp; in_output, <a class="code" href="class_s_p_h_1_1_solid_body.html">SolidBody</a> *solid_body);</div><div class="line"><a name="l00384"></a><span class="lineno">  384</span>&#160;        <span class="keyword">virtual</span> ~<a class="code" href="class_s_p_h_1_1_write_total_viscous_force_on_solid.html">WriteTotalViscousForceOnSolid</a>() {};</div><div class="line"><a name="l00385"></a><span class="lineno">  385</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> WriteToFile(Real time = 0.0) <span class="keyword">override</span>;</div><div class="line"><a name="l00386"></a><span class="lineno">  386</span>&#160;    };</div><div class="line"><a name="l00387"></a><span class="lineno">  387</span>&#160;</div><div class="line"><a name="l00392"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_write_total_force_on_solid.html">  392</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_s_p_h_1_1_write_total_force_on_solid.html">WriteTotalForceOnSolid</a></div><div class="line"><a name="l00393"></a><span class="lineno">  393</span>&#160;        : <span class="keyword">public</span> <a class="code" href="class_s_p_h_1_1_write_body_states.html">WriteBodyStates</a>, <span class="keyword">public</span> <a class="code" href="class_s_p_h_1_1solid__dynamics_1_1_total_force_on_solid.html">solid_dynamics::TotalForceOnSolid</a></div><div class="line"><a name="l00394"></a><span class="lineno">  394</span>&#160;    {</div><div class="line"><a name="l00395"></a><span class="lineno">  395</span>&#160;    <span class="keyword">protected</span>:</div><div class="line"><a name="l00396"></a><span class="lineno">  396</span>&#160;        <span class="keywordtype">size_t</span> dimension_;</div><div class="line"><a name="l00397"></a><span class="lineno">  397</span>&#160;        std::string filefullpath_;</div><div class="line"><a name="l00398"></a><span class="lineno">  398</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00399"></a><span class="lineno">  399</span>&#160;        <a class="code" href="class_s_p_h_1_1_write_total_force_on_solid.html">WriteTotalForceOnSolid</a>(<a class="code" href="class_s_p_h_1_1_in___output.html">In_Output</a>&amp; in_output, <a class="code" href="class_s_p_h_1_1_solid_body.html">SolidBody</a> *solid_body);</div><div class="line"><a name="l00400"></a><span class="lineno">  400</span>&#160;        <span class="keyword">virtual</span> ~<a class="code" href="class_s_p_h_1_1_write_total_force_on_solid.html">WriteTotalForceOnSolid</a>() {};</div><div class="line"><a name="l00401"></a><span class="lineno">  401</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> WriteToFile(Real time = 0.0) <span class="keyword">override</span>;</div><div class="line"><a name="l00402"></a><span class="lineno">  402</span>&#160;    };</div><div class="line"><a name="l00403"></a><span class="lineno">  403</span>&#160;</div><div class="line"><a name="l00408"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_write_upper_front_in_x_direction.html">  408</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_s_p_h_1_1_write_upper_front_in_x_direction.html">WriteUpperFrontInXDirection</a></div><div class="line"><a name="l00409"></a><span class="lineno">  409</span>&#160;        : <span class="keyword">public</span> <a class="code" href="class_s_p_h_1_1_write_body_states.html">WriteBodyStates</a>, <span class="keyword">public</span> <a class="code" href="class_s_p_h_1_1_upper_front_in_x_direction.html">UpperFrontInXDirection</a></div><div class="line"><a name="l00410"></a><span class="lineno">  410</span>&#160;    {</div><div class="line"><a name="l00411"></a><span class="lineno">  411</span>&#160;    <span class="keyword">protected</span>:</div><div class="line"><a name="l00412"></a><span class="lineno">  412</span>&#160;        std::string filefullpath_;</div><div class="line"><a name="l00413"></a><span class="lineno">  413</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00414"></a><span class="lineno">  414</span>&#160;        <a class="code" href="class_s_p_h_1_1_write_upper_front_in_x_direction.html">WriteUpperFrontInXDirection</a>(<a class="code" href="class_s_p_h_1_1_in___output.html">In_Output</a>&amp; in_output, <a class="code" href="class_s_p_h_1_1_s_p_h_body.html">SPHBody</a>* body);</div><div class="line"><a name="l00415"></a><span class="lineno">  415</span>&#160;        <span class="keyword">virtual</span> ~<a class="code" href="class_s_p_h_1_1_write_upper_front_in_x_direction.html">WriteUpperFrontInXDirection</a>() {};</div><div class="line"><a name="l00416"></a><span class="lineno">  416</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> WriteToFile(Real time = 0.0) <span class="keyword">override</span>;</div><div class="line"><a name="l00417"></a><span class="lineno">  417</span>&#160;    };</div><div class="line"><a name="l00418"></a><span class="lineno">  418</span>&#160;</div><div class="line"><a name="l00423"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_reload_particle_i_o.html">  423</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_s_p_h_1_1_reload_particle_i_o.html">ReloadParticleIO</a></div><div class="line"><a name="l00424"></a><span class="lineno">  424</span>&#160;    {</div><div class="line"><a name="l00425"></a><span class="lineno">  425</span>&#160;    <span class="keyword">protected</span>:</div><div class="line"><a name="l00426"></a><span class="lineno">  426</span>&#160;        StdVec&lt;std::string&gt; file_paths_;</div><div class="line"><a name="l00427"></a><span class="lineno">  427</span>&#160;</div><div class="line"><a name="l00428"></a><span class="lineno">  428</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00429"></a><span class="lineno">  429</span>&#160;        <a class="code" href="class_s_p_h_1_1_reload_particle_i_o.html">ReloadParticleIO</a>(<a class="code" href="class_s_p_h_1_1_in___output.html">In_Output</a>&amp; in_output, <a class="code" href="namespace_s_p_h.html#ab8b3224d963eb73d7febbf0d5346f429">SPHBodyVector</a> bodies);</div><div class="line"><a name="l00430"></a><span class="lineno">  430</span>&#160;        <span class="keyword">virtual</span> ~<a class="code" href="class_s_p_h_1_1_reload_particle_i_o.html">ReloadParticleIO</a>() {};</div><div class="line"><a name="l00431"></a><span class="lineno">  431</span>&#160;    };</div><div class="line"><a name="l00432"></a><span class="lineno">  432</span>&#160;</div><div class="line"><a name="l00437"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_write_reload_particle.html">  437</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_s_p_h_1_1_write_reload_particle.html">WriteReloadParticle</a> : <span class="keyword">public</span> <a class="code" href="class_s_p_h_1_1_reload_particle_i_o.html">ReloadParticleIO</a>, <span class="keyword">public</span> <a class="code" href="class_s_p_h_1_1_write_body_states.html">WriteBodyStates</a></div><div class="line"><a name="l00438"></a><span class="lineno">  438</span>&#160;    {</div><div class="line"><a name="l00439"></a><span class="lineno">  439</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00440"></a><span class="lineno">  440</span>&#160;        <a class="code" href="class_s_p_h_1_1_write_reload_particle.html">WriteReloadParticle</a>(<a class="code" href="class_s_p_h_1_1_in___output.html">In_Output</a>&amp; in_output, <a class="code" href="namespace_s_p_h.html#ab8b3224d963eb73d7febbf0d5346f429">SPHBodyVector</a> bodies);</div><div class="line"><a name="l00441"></a><span class="lineno">  441</span>&#160;        <a class="code" href="class_s_p_h_1_1_write_reload_particle.html">WriteReloadParticle</a>(<a class="code" href="class_s_p_h_1_1_in___output.html">In_Output</a>&amp; in_output, <a class="code" href="namespace_s_p_h.html#ab8b3224d963eb73d7febbf0d5346f429">SPHBodyVector</a> bodies, StdVec&lt;string&gt; given_body_names);</div><div class="line"><a name="l00442"></a><span class="lineno">  442</span>&#160;        <span class="keyword">virtual</span> ~<a class="code" href="class_s_p_h_1_1_write_reload_particle.html">WriteReloadParticle</a>() {};</div><div class="line"><a name="l00443"></a><span class="lineno">  443</span>&#160;</div><div class="line"><a name="l00444"></a><span class="lineno">  444</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> WriteToFile(Real time = 0.0) <span class="keyword">override</span>;</div><div class="line"><a name="l00445"></a><span class="lineno">  445</span>&#160;    };</div><div class="line"><a name="l00446"></a><span class="lineno">  446</span>&#160;</div><div class="line"><a name="l00451"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_read_reload_particle.html">  451</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_s_p_h_1_1_read_reload_particle.html">ReadReloadParticle</a> : <span class="keyword">public</span> <a class="code" href="class_s_p_h_1_1_reload_particle_i_o.html">ReloadParticleIO</a>, <span class="keyword">public</span> <a class="code" href="class_s_p_h_1_1_read_body_states.html">ReadBodyStates</a></div><div class="line"><a name="l00452"></a><span class="lineno">  452</span>&#160;    {</div><div class="line"><a name="l00453"></a><span class="lineno">  453</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00454"></a><span class="lineno">  454</span>&#160;        <a class="code" href="class_s_p_h_1_1_read_reload_particle.html">ReadReloadParticle</a>(<a class="code" href="class_s_p_h_1_1_in___output.html">In_Output</a>&amp; in_output, <a class="code" href="namespace_s_p_h.html#ab8b3224d963eb73d7febbf0d5346f429">SPHBodyVector</a> bodies, StdVec&lt;std::string&gt; reload_body_names);</div><div class="line"><a name="l00455"></a><span class="lineno">  455</span>&#160;        <span class="keyword">virtual</span> ~<a class="code" href="class_s_p_h_1_1_read_reload_particle.html">ReadReloadParticle</a>() { };</div><div class="line"><a name="l00456"></a><span class="lineno">  456</span>&#160;</div><div class="line"><a name="l00457"></a><span class="lineno">  457</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> ReadFromFile(<span class="keywordtype">size_t</span> iteration_step = 0) <span class="keyword">override</span>;</div><div class="line"><a name="l00458"></a><span class="lineno">  458</span>&#160;    };</div><div class="line"><a name="l00459"></a><span class="lineno">  459</span>&#160;</div><div class="line"><a name="l00464"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_restart_i_o.html">  464</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_s_p_h_1_1_restart_i_o.html">RestartIO</a></div><div class="line"><a name="l00465"></a><span class="lineno">  465</span>&#160;    {</div><div class="line"><a name="l00466"></a><span class="lineno">  466</span>&#160;    <span class="keyword">protected</span>:</div><div class="line"><a name="l00467"></a><span class="lineno">  467</span>&#160;        std::string overall_file_path_;</div><div class="line"><a name="l00468"></a><span class="lineno">  468</span>&#160;        StdVec&lt;std::string&gt; file_paths_;</div><div class="line"><a name="l00469"></a><span class="lineno">  469</span>&#160;</div><div class="line"><a name="l00470"></a><span class="lineno">  470</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00471"></a><span class="lineno">  471</span>&#160;        <a class="code" href="class_s_p_h_1_1_restart_i_o.html">RestartIO</a>(<a class="code" href="class_s_p_h_1_1_in___output.html">In_Output</a>&amp; in_output, <a class="code" href="namespace_s_p_h.html#ab8b3224d963eb73d7febbf0d5346f429">SPHBodyVector</a> bodies);</div><div class="line"><a name="l00472"></a><span class="lineno">  472</span>&#160;        <span class="keyword">virtual</span> ~<a class="code" href="class_s_p_h_1_1_restart_i_o.html">RestartIO</a>() {};</div><div class="line"><a name="l00473"></a><span class="lineno">  473</span>&#160;    };</div><div class="line"><a name="l00474"></a><span class="lineno">  474</span>&#160;</div><div class="line"><a name="l00479"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_write_restart.html">  479</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_s_p_h_1_1_write_restart.html">WriteRestart</a> : <span class="keyword">public</span> <a class="code" href="class_s_p_h_1_1_restart_i_o.html">RestartIO</a>, <span class="keyword">public</span> <a class="code" href="class_s_p_h_1_1_write_body_states.html">WriteBodyStates</a></div><div class="line"><a name="l00480"></a><span class="lineno">  480</span>&#160;    {</div><div class="line"><a name="l00481"></a><span class="lineno">  481</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00482"></a><span class="lineno">  482</span>&#160;        <a class="code" href="class_s_p_h_1_1_write_restart.html">WriteRestart</a>(<a class="code" href="class_s_p_h_1_1_in___output.html">In_Output</a>&amp; in_output, <a class="code" href="namespace_s_p_h.html#ab8b3224d963eb73d7febbf0d5346f429">SPHBodyVector</a> bodies)</div><div class="line"><a name="l00483"></a><span class="lineno">  483</span>&#160;            : <a class="code" href="class_s_p_h_1_1_restart_i_o.html">RestartIO</a>(in_output, bodies), <a class="code" href="class_s_p_h_1_1_write_body_states.html">WriteBodyStates</a>(in_output, bodies) {};</div><div class="line"><a name="l00484"></a><span class="lineno">  484</span>&#160;        <span class="keyword">virtual</span> ~<a class="code" href="class_s_p_h_1_1_write_restart.html">WriteRestart</a>() {};</div><div class="line"><a name="l00485"></a><span class="lineno">  485</span>&#160;</div><div class="line"><a name="l00486"></a><span class="lineno">  486</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> WriteToFile(Real time = 0.0) <span class="keyword">override</span>;</div><div class="line"><a name="l00487"></a><span class="lineno">  487</span>&#160;    };</div><div class="line"><a name="l00488"></a><span class="lineno">  488</span>&#160;</div><div class="line"><a name="l00493"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_read_restart.html">  493</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_s_p_h_1_1_read_restart.html">ReadRestart</a> : <span class="keyword">public</span> <a class="code" href="class_s_p_h_1_1_restart_i_o.html">RestartIO</a>, <span class="keyword">public</span> <a class="code" href="class_s_p_h_1_1_read_body_states.html">ReadBodyStates</a></div><div class="line"><a name="l00494"></a><span class="lineno">  494</span>&#160;    {</div><div class="line"><a name="l00495"></a><span class="lineno">  495</span>&#160;    <span class="keyword">protected</span>:</div><div class="line"><a name="l00496"></a><span class="lineno">  496</span>&#160;        Real ReadRestartTime(<span class="keywordtype">size_t</span> restart_step);</div><div class="line"><a name="l00497"></a><span class="lineno">  497</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00498"></a><span class="lineno">  498</span>&#160;        <a class="code" href="class_s_p_h_1_1_read_restart.html">ReadRestart</a>(<a class="code" href="class_s_p_h_1_1_in___output.html">In_Output</a>&amp; in_output, <a class="code" href="namespace_s_p_h.html#ab8b3224d963eb73d7febbf0d5346f429">SPHBodyVector</a> bodies)</div><div class="line"><a name="l00499"></a><span class="lineno">  499</span>&#160;            : <a class="code" href="class_s_p_h_1_1_restart_i_o.html">RestartIO</a>(in_output, bodies), <a class="code" href="class_s_p_h_1_1_read_body_states.html">ReadBodyStates</a>(in_output, bodies) {};</div><div class="line"><a name="l00500"></a><span class="lineno">  500</span>&#160;        <span class="keyword">virtual</span> ~<a class="code" href="class_s_p_h_1_1_read_restart.html">ReadRestart</a>() {};</div><div class="line"><a name="l00501"></a><span class="lineno">  501</span>&#160;        <span class="keyword">virtual</span> Real ReadRestartFiles(<span class="keywordtype">size_t</span> restart_step) {</div><div class="line"><a name="l00502"></a><span class="lineno">  502</span>&#160;            ReadFromFile(restart_step);</div><div class="line"><a name="l00503"></a><span class="lineno">  503</span>&#160;            <span class="keywordflow">return</span> ReadRestartTime(restart_step);</div><div class="line"><a name="l00504"></a><span class="lineno">  504</span>&#160;        };</div><div class="line"><a name="l00505"></a><span class="lineno">  505</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> ReadFromFile(<span class="keywordtype">size_t</span> iteration_step = 0) <span class="keyword">override</span>;</div><div class="line"><a name="l00506"></a><span class="lineno">  506</span>&#160;    };</div><div class="line"><a name="l00507"></a><span class="lineno">  507</span>&#160;</div><div class="line"><a name="l00512"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_write_sim_body_pin_data.html">  512</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_s_p_h_1_1_write_sim_body_pin_data.html">WriteSimBodyPinData</a> : <span class="keyword">public</span> <a class="code" href="class_s_p_h_1_1_write_sim_body_states.html">WriteSimBodyStates</a>&lt;SimTK::MobilizedBody::Pin&gt;</div><div class="line"><a name="l00513"></a><span class="lineno">  513</span>&#160;    {</div><div class="line"><a name="l00514"></a><span class="lineno">  514</span>&#160;    <span class="keyword">protected</span>:</div><div class="line"><a name="l00515"></a><span class="lineno">  515</span>&#160;        std::string filefullpath_;</div><div class="line"><a name="l00516"></a><span class="lineno">  516</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00517"></a><span class="lineno">  517</span>&#160;        <a class="code" href="class_s_p_h_1_1_write_sim_body_pin_data.html">WriteSimBodyPinData</a>(<a class="code" href="class_s_p_h_1_1_in___output.html">In_Output</a>&amp; in_output, SimTK::RungeKuttaMersonIntegrator&amp; integ, SimTK::MobilizedBody::Pin&amp; pinbody);</div><div class="line"><a name="l00518"></a><span class="lineno">  518</span>&#160;        <span class="keyword">virtual</span> ~<a class="code" href="class_s_p_h_1_1_write_sim_body_pin_data.html">WriteSimBodyPinData</a>() {};</div><div class="line"><a name="l00519"></a><span class="lineno">  519</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> WriteToFile(Real time = 0.0) <span class="keyword">override</span>;</div><div class="line"><a name="l00520"></a><span class="lineno">  520</span>&#160;    };</div><div class="line"><a name="l00525"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_material_property_i_o.html">  525</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_s_p_h_1_1_material_property_i_o.html">MaterialPropertyIO</a></div><div class="line"><a name="l00526"></a><span class="lineno">  526</span>&#160;    {</div><div class="line"><a name="l00527"></a><span class="lineno">  527</span>&#160;    <span class="keyword">protected</span>:</div><div class="line"><a name="l00528"></a><span class="lineno">  528</span>&#160;        <a class="code" href="class_s_p_h_1_1_in___output.html">In_Output</a> &amp;in_output_;</div><div class="line"><a name="l00529"></a><span class="lineno">  529</span>&#160;        <a class="code" href="class_s_p_h_1_1_base_material.html">BaseMaterial</a> *material_;</div><div class="line"><a name="l00530"></a><span class="lineno">  530</span>&#160;        <a class="code" href="namespace_s_p_h.html#ad51fa139045aca30efc1ab82968a98a5">MaterialVector</a> materials_;</div><div class="line"><a name="l00531"></a><span class="lineno">  531</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00532"></a><span class="lineno">  532</span>&#160;        <a class="code" href="class_s_p_h_1_1_material_property_i_o.html">MaterialPropertyIO</a>(<a class="code" href="class_s_p_h_1_1_in___output.html">In_Output</a> &amp;in_output, <a class="code" href="class_s_p_h_1_1_base_material.html">BaseMaterial</a> *material)</div><div class="line"><a name="l00533"></a><span class="lineno">  533</span>&#160;            : in_output_(in_output), material_(material) {};</div><div class="line"><a name="l00534"></a><span class="lineno">  534</span>&#160;        <a class="code" href="class_s_p_h_1_1_material_property_i_o.html">MaterialPropertyIO</a>(<a class="code" href="class_s_p_h_1_1_in___output.html">In_Output</a> &amp;in_output, <a class="code" href="namespace_s_p_h.html#ad51fa139045aca30efc1ab82968a98a5">MaterialVector</a> materials)</div><div class="line"><a name="l00535"></a><span class="lineno">  535</span>&#160;            : in_output_(in_output), materials_(materials) {};</div><div class="line"><a name="l00536"></a><span class="lineno">  536</span>&#160;        <span class="keyword">virtual</span> ~<a class="code" href="class_s_p_h_1_1_material_property_i_o.html">MaterialPropertyIO</a>() {};</div><div class="line"><a name="l00537"></a><span class="lineno">  537</span>&#160;    };</div><div class="line"><a name="l00538"></a><span class="lineno">  538</span>&#160;</div><div class="line"><a name="l00543"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_write_material_property.html">  543</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_s_p_h_1_1_write_material_property.html">WriteMaterialProperty</a> : <span class="keyword">public</span> <a class="code" href="class_s_p_h_1_1_material_property_i_o.html">MaterialPropertyIO</a></div><div class="line"><a name="l00544"></a><span class="lineno">  544</span>&#160;    {</div><div class="line"><a name="l00545"></a><span class="lineno">  545</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00546"></a><span class="lineno">  546</span>&#160;        <a class="code" href="class_s_p_h_1_1_write_material_property.html">WriteMaterialProperty</a>(<a class="code" href="class_s_p_h_1_1_in___output.html">In_Output</a> &amp;in_output, <a class="code" href="class_s_p_h_1_1_base_material.html">BaseMaterial</a> *material)</div><div class="line"><a name="l00547"></a><span class="lineno">  547</span>&#160;            : <a class="code" href="class_s_p_h_1_1_material_property_i_o.html">MaterialPropertyIO</a>(in_output, material) {};</div><div class="line"><a name="l00548"></a><span class="lineno">  548</span>&#160;        <a class="code" href="class_s_p_h_1_1_write_material_property.html">WriteMaterialProperty</a>(<a class="code" href="class_s_p_h_1_1_in___output.html">In_Output</a> &amp;in_output, <a class="code" href="namespace_s_p_h.html#ad51fa139045aca30efc1ab82968a98a5">MaterialVector</a> materials)</div><div class="line"><a name="l00549"></a><span class="lineno">  549</span>&#160;            : <a class="code" href="class_s_p_h_1_1_material_property_i_o.html">MaterialPropertyIO</a>(in_output, materials) {};</div><div class="line"><a name="l00550"></a><span class="lineno">  550</span>&#160;        <span class="keyword">virtual</span> ~<a class="code" href="class_s_p_h_1_1_write_material_property.html">WriteMaterialProperty</a>() {};</div><div class="line"><a name="l00551"></a><span class="lineno">  551</span>&#160;</div><div class="line"><a name="l00552"></a><span class="lineno">  552</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> WriteToFile(Real time) = 0;</div><div class="line"><a name="l00553"></a><span class="lineno">  553</span>&#160;    };</div><div class="line"><a name="l00554"></a><span class="lineno">  554</span>&#160;</div><div class="line"><a name="l00559"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_read_material_property.html">  559</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_s_p_h_1_1_read_material_property.html">ReadMaterialProperty</a> : <span class="keyword">public</span> <a class="code" href="class_s_p_h_1_1_material_property_i_o.html">MaterialPropertyIO</a></div><div class="line"><a name="l00560"></a><span class="lineno">  560</span>&#160;    {</div><div class="line"><a name="l00561"></a><span class="lineno">  561</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00562"></a><span class="lineno">  562</span>&#160;        <a class="code" href="class_s_p_h_1_1_read_material_property.html">ReadMaterialProperty</a>(<a class="code" href="class_s_p_h_1_1_in___output.html">In_Output</a> &amp;in_output, <a class="code" href="class_s_p_h_1_1_base_material.html">BaseMaterial</a> *material)</div><div class="line"><a name="l00563"></a><span class="lineno">  563</span>&#160;            : <a class="code" href="class_s_p_h_1_1_material_property_i_o.html">MaterialPropertyIO</a>(in_output, material) {};</div><div class="line"><a name="l00564"></a><span class="lineno">  564</span>&#160;        <a class="code" href="class_s_p_h_1_1_read_material_property.html">ReadMaterialProperty</a>(<a class="code" href="class_s_p_h_1_1_in___output.html">In_Output</a> &amp;in_output, <a class="code" href="namespace_s_p_h.html#ad51fa139045aca30efc1ab82968a98a5">MaterialVector</a> materials)</div><div class="line"><a name="l00565"></a><span class="lineno">  565</span>&#160;            : <a class="code" href="class_s_p_h_1_1_material_property_i_o.html">MaterialPropertyIO</a>(in_output, materials) {};</div><div class="line"><a name="l00566"></a><span class="lineno">  566</span>&#160;        <span class="keyword">virtual</span> ~<a class="code" href="class_s_p_h_1_1_read_material_property.html">ReadMaterialProperty</a>() {};</div><div class="line"><a name="l00567"></a><span class="lineno">  567</span>&#160;</div><div class="line"><a name="l00568"></a><span class="lineno">  568</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> ReadFromFile(<span class="keywordtype">size_t</span> iteration_step) = 0;</div><div class="line"><a name="l00569"></a><span class="lineno">  569</span>&#160;    };</div><div class="line"><a name="l00570"></a><span class="lineno">  570</span>&#160;</div><div class="line"><a name="l00575"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_reload_material_property_i_o.html">  575</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_s_p_h_1_1_reload_material_property_i_o.html">ReloadMaterialPropertyIO</a></div><div class="line"><a name="l00576"></a><span class="lineno">  576</span>&#160;    {</div><div class="line"><a name="l00577"></a><span class="lineno">  577</span>&#160;    <span class="keyword">protected</span>:</div><div class="line"><a name="l00578"></a><span class="lineno">  578</span>&#160;        std::string file_path_;</div><div class="line"><a name="l00579"></a><span class="lineno">  579</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00580"></a><span class="lineno">  580</span>&#160;        <a class="code" href="class_s_p_h_1_1_reload_material_property_i_o.html">ReloadMaterialPropertyIO</a>(<a class="code" href="class_s_p_h_1_1_in___output.html">In_Output</a>&amp; in_output, <a class="code" href="class_s_p_h_1_1_base_material.html">BaseMaterial</a> *material);</div><div class="line"><a name="l00581"></a><span class="lineno">  581</span>&#160;        <span class="keyword">virtual</span> ~<a class="code" href="class_s_p_h_1_1_reload_material_property_i_o.html">ReloadMaterialPropertyIO</a>() {};</div><div class="line"><a name="l00582"></a><span class="lineno">  582</span>&#160;    };</div><div class="line"><a name="l00583"></a><span class="lineno">  583</span>&#160;</div><div class="line"><a name="l00588"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_write_reload_material_property.html">  588</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_s_p_h_1_1_write_reload_material_property.html">WriteReloadMaterialProperty</a> : <span class="keyword">public</span> <a class="code" href="class_s_p_h_1_1_reload_material_property_i_o.html">ReloadMaterialPropertyIO</a>, <span class="keyword">public</span> <a class="code" href="class_s_p_h_1_1_write_material_property.html">WriteMaterialProperty</a></div><div class="line"><a name="l00589"></a><span class="lineno">  589</span>&#160;    {</div><div class="line"><a name="l00590"></a><span class="lineno">  590</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00591"></a><span class="lineno">  591</span>&#160;        <a class="code" href="class_s_p_h_1_1_write_reload_material_property.html">WriteReloadMaterialProperty</a>(<a class="code" href="class_s_p_h_1_1_in___output.html">In_Output</a>&amp; in_output, <a class="code" href="class_s_p_h_1_1_base_material.html">BaseMaterial</a> *material)</div><div class="line"><a name="l00592"></a><span class="lineno">  592</span>&#160;            : <a class="code" href="class_s_p_h_1_1_reload_material_property_i_o.html">ReloadMaterialPropertyIO</a>(in_output, material), <a class="code" href="class_s_p_h_1_1_write_material_property.html">WriteMaterialProperty</a>(in_output, material) {};</div><div class="line"><a name="l00593"></a><span class="lineno">  593</span>&#160;        <a class="code" href="class_s_p_h_1_1_write_reload_material_property.html">WriteReloadMaterialProperty</a>(<a class="code" href="class_s_p_h_1_1_in___output.html">In_Output</a>&amp; in_output, <a class="code" href="class_s_p_h_1_1_base_material.html">BaseMaterial</a>* material, <span class="keywordtype">string</span> given_material_name)</div><div class="line"><a name="l00594"></a><span class="lineno">  594</span>&#160;            :<a class="code" href="class_s_p_h_1_1_write_reload_material_property.html">WriteReloadMaterialProperty</a>(in_output, material) {</div><div class="line"><a name="l00595"></a><span class="lineno">  595</span>&#160;            file_path_ = in_output.reload_folder_ + <span class="stringliteral">&quot;/Material_&quot;</span> + given_material_name + <span class="stringliteral">&quot;_rld.xml&quot;</span>;</div><div class="line"><a name="l00596"></a><span class="lineno">  596</span>&#160;        };</div><div class="line"><a name="l00597"></a><span class="lineno">  597</span>&#160;</div><div class="line"><a name="l00598"></a><span class="lineno">  598</span>&#160;        <span class="keyword">virtual</span> ~<a class="code" href="class_s_p_h_1_1_write_reload_material_property.html">WriteReloadMaterialProperty</a>() {};</div><div class="line"><a name="l00599"></a><span class="lineno">  599</span>&#160;</div><div class="line"><a name="l00600"></a><span class="lineno">  600</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> WriteToFile(Real time = 0.0) <span class="keyword">override</span>;</div><div class="line"><a name="l00601"></a><span class="lineno">  601</span>&#160;    };</div><div class="line"><a name="l00602"></a><span class="lineno">  602</span>&#160;</div><div class="line"><a name="l00607"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_read_reload_material_property.html">  607</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_s_p_h_1_1_read_reload_material_property.html">ReadReloadMaterialProperty</a> : <span class="keyword">public</span> <a class="code" href="class_s_p_h_1_1_reload_material_property_i_o.html">ReloadMaterialPropertyIO</a>, <span class="keyword">public</span> <a class="code" href="class_s_p_h_1_1_read_material_property.html">ReadMaterialProperty</a></div><div class="line"><a name="l00608"></a><span class="lineno">  608</span>&#160;    {</div><div class="line"><a name="l00609"></a><span class="lineno">  609</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00610"></a><span class="lineno">  610</span>&#160;        <a class="code" href="class_s_p_h_1_1_read_reload_material_property.html">ReadReloadMaterialProperty</a>(<a class="code" href="class_s_p_h_1_1_in___output.html">In_Output</a>&amp; in_output, <a class="code" href="class_s_p_h_1_1_base_material.html">BaseMaterial</a> *material);</div><div class="line"><a name="l00611"></a><span class="lineno">  611</span>&#160;        <span class="keyword">virtual</span> ~<a class="code" href="class_s_p_h_1_1_read_reload_material_property.html">ReadReloadMaterialProperty</a>() {};</div><div class="line"><a name="l00612"></a><span class="lineno">  612</span>&#160;</div><div class="line"><a name="l00613"></a><span class="lineno">  613</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> ReadFromFile(<span class="keywordtype">size_t</span> iteration_step = 0) <span class="keyword">override</span>;</div><div class="line"><a name="l00614"></a><span class="lineno">  614</span>&#160;    };</div><div class="line"><a name="l00615"></a><span class="lineno">  615</span>&#160;}</div><div class="ttc" id="namespace_s_p_h_html_ab8b3224d963eb73d7febbf0d5346f429"><div class="ttname"><a href="namespace_s_p_h.html#ab8b3224d963eb73d7febbf0d5346f429">SPH::SPHBodyVector</a></div><div class="ttdeci">StdVec&lt; SPHBody * &gt; SPHBodyVector</div><div class="ttdef"><b>Definition:</b> sph_data_conainers.h:26</div></div>
<div class="ttc" id="class_s_p_h_1_1_fluid_body_html"><div class="ttname"><a href="class_s_p_h_1_1_fluid_body.html">SPH::FluidBody</a></div><div class="ttdoc">Declaration of fluid body. </div><div class="ttdef"><b>Definition:</b> fluid_body.h:46</div></div>
<div class="ttc" id="class_s_p_h_1_1_restart_i_o_html"><div class="ttname"><a href="class_s_p_h_1_1_restart_i_o.html">SPH::RestartIO</a></div><div class="ttdoc">Write the restart file in XML format. </div><div class="ttdef"><b>Definition:</b> in_output.h:464</div></div>
<div class="ttc" id="class_s_p_h_1_1observer__dynamics_1_1_observing_a_diffusion_reaction_quantity_html"><div class="ttname"><a href="class_s_p_h_1_1observer__dynamics_1_1_observing_a_diffusion_reaction_quantity.html">SPH::observer_dynamics::ObservingADiffusionReactionQuantity</a></div><div class="ttdoc">Observing a diffusion-reaction quantity from a body. </div><div class="ttdef"><b>Definition:</b> observer_dynamics.h:105</div></div>
<div class="ttc" id="class_s_p_h_1_1_write_observed_diffusion_reaction_quantity_html_a812b65571f0a54bf7430f9641e7aa3a6"><div class="ttname"><a href="class_s_p_h_1_1_write_observed_diffusion_reaction_quantity.html#a812b65571f0a54bf7430f9641e7aa3a6">SPH::WriteObservedDiffusionReactionQuantity::WriteToFile</a></div><div class="ttdeci">virtual void WriteToFile(Real time) override</div><div class="ttdoc">Output data to files. </div><div class="ttdef"><b>Definition:</b> in_output.h:329</div></div>
<div class="ttc" id="class_s_p_h_1_1_read_body_states_html"><div class="ttname"><a href="class_s_p_h_1_1_read_body_states.html">SPH::ReadBodyStates</a></div><div class="ttdoc">base class for read body states. </div><div class="ttdef"><b>Definition:</b> in_output.h:108</div></div>
<div class="ttc" id="class_s_p_h_1_1_maximum_speed_html"><div class="ttname"><a href="class_s_p_h_1_1_maximum_speed.html">SPH::MaximumSpeed</a></div><div class="ttdoc">Get the maximum particle speed in a SPH body. </div><div class="ttdef"><b>Definition:</b> general_dynamics.h:262</div></div>
<div class="ttc" id="class_s_p_h_1_1observer__dynamics_1_1_observing_a_quantity_html"><div class="ttname"><a href="class_s_p_h_1_1observer__dynamics_1_1_observing_a_quantity.html">SPH::observer_dynamics::ObservingAQuantity</a></div><div class="ttdoc">Observering a given member data in the particles of a general body. </div><div class="ttdef"><b>Definition:</b> observer_dynamics.h:56</div></div>
<div class="ttc" id="class_s_p_h_1_1_read_material_property_html"><div class="ttname"><a href="class_s_p_h_1_1_read_material_property.html">SPH::ReadMaterialProperty</a></div><div class="ttdef"><b>Definition:</b> in_output.h:559</div></div>
<div class="ttc" id="class_s_p_h_1_1_base_material_html"><div class="ttname"><a href="class_s_p_h_1_1_base_material.html">SPH::BaseMaterial</a></div><div class="ttdoc">Base of all materials. </div><div class="ttdef"><b>Definition:</b> base_material.h:53</div></div>
<div class="ttc" id="class_s_p_h_1_1_write_sim_body_states_html"><div class="ttname"><a href="class_s_p_h_1_1_write_sim_body_states.html">SPH::WriteSimBodyStates</a></div><div class="ttdoc">base class for write SimBody states. </div><div class="ttdef"><b>Definition:</b> in_output.h:141</div></div>
<div class="ttc" id="class_s_p_h_1_1_write_body_mesh_to_plt_html"><div class="ttname"><a href="class_s_p_h_1_1_write_body_mesh_to_plt.html">SPH::WriteBodyMeshToPlt</a></div><div class="ttdoc">write the background mesh data for relax body </div><div class="ttdef"><b>Definition:</b> in_output.h:222</div></div>
<div class="ttc" id="class_s_p_h_1_1_write_body_states_html"><div class="ttname"><a href="class_s_p_h_1_1_write_body_states.html">SPH::WriteBodyStates</a></div><div class="ttdoc">base class for write body states. </div><div class="ttdef"><b>Definition:</b> in_output.h:92</div></div>
<div class="ttc" id="class_s_p_h_1_1_write_sim_body_pin_data_html"><div class="ttname"><a href="class_s_p_h_1_1_write_sim_body_pin_data.html">SPH::WriteSimBodyPinData</a></div><div class="ttdoc">Write total force acting a solid body. </div><div class="ttdef"><b>Definition:</b> in_output.h:512</div></div>
<div class="ttc" id="class_s_p_h_1_1_solid_body_html"><div class="ttname"><a href="class_s_p_h_1_1_solid_body.html">SPH::SolidBody</a></div><div class="ttdoc">Declaration of solidbody which is used for Solid BCs and derived from RealBody. </div><div class="ttdef"><b>Definition:</b> solid_body.h:45</div></div>
<div class="ttc" id="class_s_p_h_1_1_write_total_viscous_force_on_solid_html"><div class="ttname"><a href="class_s_p_h_1_1_write_total_viscous_force_on_solid.html">SPH::WriteTotalViscousForceOnSolid</a></div><div class="ttdoc">write total viscous force acting a solid body </div><div class="ttdef"><b>Definition:</b> in_output.h:376</div></div>
<div class="ttc" id="class_s_p_h_1_1_write_upper_front_in_x_direction_html"><div class="ttname"><a href="class_s_p_h_1_1_write_upper_front_in_x_direction.html">SPH::WriteUpperFrontInXDirection</a></div><div class="ttdoc">write files for water front in free surface flow </div><div class="ttdef"><b>Definition:</b> in_output.h:408</div></div>
<div class="ttc" id="class_s_p_h_1_1_s_p_h_body_contact_relation_html"><div class="ttname"><a href="class_s_p_h_1_1_s_p_h_body_contact_relation.html">SPH::SPHBodyContactRelation</a></div><div class="ttdoc">The relation between a SPH body and its contact SPH bodies. </div><div class="ttdef"><b>Definition:</b> body_relation.h:82</div></div>
<div class="ttc" id="class_s_p_h_1_1_write_reload_particle_html"><div class="ttname"><a href="class_s_p_h_1_1_write_reload_particle.html">SPH::WriteReloadParticle</a></div><div class="ttdoc">Write the reload particles file in XML format. </div><div class="ttdef"><b>Definition:</b> in_output.h:437</div></div>
<div class="ttc" id="class_s_p_h_1_1_write_an_observed_quantity_html"><div class="ttname"><a href="class_s_p_h_1_1_write_an_observed_quantity.html">SPH::WriteAnObservedQuantity</a></div><div class="ttdoc">write files for observed quantity </div><div class="ttdef"><b>Definition:</b> in_output.h:239</div></div>
<div class="ttc" id="class_s_p_h_1_1_read_reload_particle_html"><div class="ttname"><a href="class_s_p_h_1_1_read_reload_particle.html">SPH::ReadReloadParticle</a></div><div class="ttdoc">Write the reload particles file in XML format. </div><div class="ttdef"><b>Definition:</b> in_output.h:451</div></div>
<div class="ttc" id="all__physical__dynamics_8h_html"><div class="ttname"><a href="all__physical__dynamics_8h.html">all_physical_dynamics.h</a></div></div>
<div class="ttc" id="class_s_p_h_1_1_reload_material_property_i_o_html"><div class="ttname"><a href="class_s_p_h_1_1_reload_material_property_i_o.html">SPH::ReloadMaterialPropertyIO</a></div><div class="ttdoc">For write and read material property. </div><div class="ttdef"><b>Definition:</b> in_output.h:575</div></div>
<div class="ttc" id="class_s_p_h_1_1observer__dynamics_1_1_observing_a_quantity_html_ac7c700df625fac6dfe6999301e4f83ad"><div class="ttname"><a href="class_s_p_h_1_1observer__dynamics_1_1_observing_a_quantity.html#ac7c700df625fac6dfe6999301e4f83ad">SPH::observer_dynamics::ObservingAQuantity::observed_quantities_</a></div><div class="ttdeci">StdLargeVec&lt; DataType &gt; observed_quantities_</div><div class="ttdef"><b>Definition:</b> observer_dynamics.h:60</div></div>
<div class="ttc" id="class_s_p_h_1_1_upper_front_in_x_direction_html"><div class="ttname"><a href="class_s_p_h_1_1_upper_front_in_x_direction.html">SPH::UpperFrontInXDirection</a></div><div class="ttdoc">Get the upper front In X Direction for a SPH body. </div><div class="ttdef"><b>Definition:</b> general_dynamics.h:246</div></div>
<div class="ttc" id="class_s_p_h_1_1_body_states_i_o_html"><div class="ttname"><a href="class_s_p_h_1_1_body_states_i_o.html">SPH::BodyStatesIO</a></div><div class="ttdoc">base class for write and read body states. </div><div class="ttdef"><b>Definition:</b> in_output.h:74</div></div>
<div class="ttc" id="class_s_p_h_1_1observer__dynamics_1_1_observing_a_diffusion_reaction_quantity_html_a8a10412badcd4f261d3587c4ee4a536b"><div class="ttname"><a href="class_s_p_h_1_1observer__dynamics_1_1_observing_a_diffusion_reaction_quantity.html#a8a10412badcd4f261d3587c4ee4a536b">SPH::observer_dynamics::ObservingADiffusionReactionQuantity::observed_quantities_</a></div><div class="ttdeci">StdLargeVec&lt; Real &gt; observed_quantities_</div><div class="ttdef"><b>Definition:</b> observer_dynamics.h:112</div></div>
<div class="ttc" id="class_s_p_h_1_1_write_body_states_to_plt_html"><div class="ttname"><a href="class_s_p_h_1_1_write_body_states_to_plt.html">SPH::WriteBodyStatesToPlt</a></div><div class="ttdoc">Write files for bodies the output file is dat format can visualized by TecPlot. </div><div class="ttdef"><b>Definition:</b> in_output.h:189</div></div>
<div class="ttc" id="class_s_p_h_1_1_in___output_html"><div class="ttname"><a href="class_s_p_h_1_1_in___output.html">SPH::In_Output</a></div><div class="ttdoc">The base class which defines folders for output, restart and particle reload folders. </div><div class="ttdef"><b>Definition:</b> in_output.h:57</div></div>
<div class="ttc" id="sph__data__conainers_8h_html"><div class="ttname"><a href="sph__data__conainers_8h.html">sph_data_conainers.h</a></div><div class="ttdoc">Set up of basic data structure. </div></div>
<div class="ttc" id="class_s_p_h_1_1_write_maximum_speed_html"><div class="ttname"><a href="class_s_p_h_1_1_write_maximum_speed.html">SPH::WriteMaximumSpeed</a></div><div class="ttdoc">write files for the maximum speed within the body </div><div class="ttdef"><b>Definition:</b> in_output.h:362</div></div>
<div class="ttc" id="namespace_s_p_h_html_ad51fa139045aca30efc1ab82968a98a5"><div class="ttname"><a href="namespace_s_p_h.html#ad51fa139045aca30efc1ab82968a98a5">SPH::MaterialVector</a></div><div class="ttdeci">StdVec&lt; BaseMaterial * &gt; MaterialVector</div><div class="ttdef"><b>Definition:</b> sph_data_conainers.h:24</div></div>
<div class="ttc" id="class_s_p_h_1_1_read_restart_html"><div class="ttname"><a href="class_s_p_h_1_1_read_restart.html">SPH::ReadRestart</a></div><div class="ttdef"><b>Definition:</b> in_output.h:493</div></div>
<div class="ttc" id="class_s_p_h_1_1_write_restart_html"><div class="ttname"><a href="class_s_p_h_1_1_write_restart.html">SPH::WriteRestart</a></div><div class="ttdoc">Write the restart file in XML format. </div><div class="ttdef"><b>Definition:</b> in_output.h:479</div></div>
<div class="ttc" id="class_s_p_h_1_1_read_reload_material_property_html"><div class="ttname"><a href="class_s_p_h_1_1_read_reload_material_property.html">SPH::ReadReloadMaterialProperty</a></div><div class="ttdoc">Read the material property to file in XML format. </div><div class="ttdef"><b>Definition:</b> in_output.h:607</div></div>
<div class="ttc" id="class_s_p_h_1_1_write_total_mechanical_energy_html"><div class="ttname"><a href="class_s_p_h_1_1_write_total_mechanical_energy.html">SPH::WriteTotalMechanicalEnergy</a></div><div class="ttdoc">write files for the total mechanical energy of a weakly compressible fluid body </div><div class="ttdef"><b>Definition:</b> in_output.h:347</div></div>
<div class="ttc" id="class_s_p_h_1_1_write_reload_material_property_html"><div class="ttname"><a href="class_s_p_h_1_1_write_reload_material_property.html">SPH::WriteReloadMaterialProperty</a></div><div class="ttdoc">Write the material property to file in XML format. </div><div class="ttdef"><b>Definition:</b> in_output.h:588</div></div>
<div class="ttc" id="class_s_p_h_1_1solid__dynamics_1_1_total_viscous_force_on_solid_html"><div class="ttname"><a href="class_s_p_h_1_1solid__dynamics_1_1_total_viscous_force_on_solid.html">SPH::solid_dynamics::TotalViscousForceOnSolid</a></div><div class="ttdoc">Computing the total viscous force from fluid. </div><div class="ttdef"><b>Definition:</b> solid_dynamics.h:244</div></div>
<div class="ttc" id="class_s_p_h_1_1solid__dynamics_1_1_total_force_on_solid_html"><div class="ttname"><a href="class_s_p_h_1_1solid__dynamics_1_1_total_force_on_solid.html">SPH::solid_dynamics::TotalForceOnSolid</a></div><div class="ttdoc">Computing total force from fluid. </div><div class="ttdef"><b>Definition:</b> solid_dynamics.h:257</div></div>
<div class="ttc" id="class_s_p_h_1_1_material_property_i_o_html"><div class="ttname"><a href="class_s_p_h_1_1_material_property_i_o.html">SPH::MaterialPropertyIO</a></div><div class="ttdoc">base class for write and read material property. </div><div class="ttdef"><b>Definition:</b> in_output.h:525</div></div>
<div class="ttc" id="class_s_p_h_1_1fluid__dynamics_1_1_total_mechanical_energy_html"><div class="ttname"><a href="class_s_p_h_1_1fluid__dynamics_1_1_total_mechanical_energy.html">SPH::fluid_dynamics::TotalMechanicalEnergy</a></div><div class="ttdoc">Compute the total mechanical energy. </div><div class="ttdef"><b>Definition:</b> fluid_dynamics.h:225</div></div>
<div class="ttc" id="class_s_p_h_1_1_s_p_h_body_html_aab6ade081b3bf9a260dda2d980b5a98f"><div class="ttname"><a href="class_s_p_h_1_1_s_p_h_body.html#aab6ade081b3bf9a260dda2d980b5a98f">SPH::SPHBody::number_of_particles_</a></div><div class="ttdeci">size_t number_of_particles_</div><div class="ttdef"><b>Definition:</b> base_body.h:98</div></div>
<div class="ttc" id="class_s_p_h_1_1_sim_body_states_i_o_html"><div class="ttname"><a href="class_s_p_h_1_1_sim_body_states_i_o.html">SPH::SimBodyStatesIO</a></div><div class="ttdoc">base class for write and read SimBody states. </div><div class="ttdef"><b>Definition:</b> in_output.h:124</div></div>
<div class="ttc" id="class_s_p_h_1_1_write_observed_diffusion_reaction_quantity_html_a0a1773a63c40d3f2f5c56b8f06dc7e94"><div class="ttname"><a href="class_s_p_h_1_1_write_observed_diffusion_reaction_quantity.html#a0a1773a63c40d3f2f5c56b8f06dc7e94">SPH::WriteObservedDiffusionReactionQuantity::WriteObservedDiffusionReactionQuantity</a></div><div class="ttdeci">WriteObservedDiffusionReactionQuantity(string species_name, In_Output &amp;in_output, SPHBodyContactRelation *body_contact_relation)</div><div class="ttdef"><b>Definition:</b> in_output.h:308</div></div>
<div class="ttc" id="class_s_p_h_1_1_s_p_h_body_html"><div class="ttname"><a href="class_s_p_h_1_1_s_p_h_body.html">SPH::SPHBody</a></div><div class="ttdoc">SPHBody is a base body with basic data and functions. Its derived class can be a real fluid body...</div><div class="ttdef"><b>Definition:</b> base_body.h:73</div></div>
<div class="ttc" id="class_s_p_h_1_1_write_total_force_on_solid_html"><div class="ttname"><a href="class_s_p_h_1_1_write_total_force_on_solid.html">SPH::WriteTotalForceOnSolid</a></div><div class="ttdoc">Write total force acting a solid body. </div><div class="ttdef"><b>Definition:</b> in_output.h:392</div></div>
<div class="ttc" id="class_s_p_h_1_1_write_material_property_html"><div class="ttname"><a href="class_s_p_h_1_1_write_material_property.html">SPH::WriteMaterialProperty</a></div><div class="ttdoc">base class for write material property. </div><div class="ttdef"><b>Definition:</b> in_output.h:543</div></div>
<div class="ttc" id="class_s_p_h_1_1_s_p_h_system_html"><div class="ttname"><a href="class_s_p_h_1_1_s_p_h_system.html">SPH::SPHSystem</a></div><div class="ttdoc">The SPH system managing objects in the system level. </div><div class="ttdef"><b>Definition:</b> sph_system.h:28</div></div>
<div class="ttc" id="class_s_p_h_1_1_write_body_states_to_vtu_html"><div class="ttname"><a href="class_s_p_h_1_1_write_body_states_to_vtu.html">SPH::WriteBodyStatesToVtu</a></div><div class="ttdoc">Write files for bodies the output file is VTK XML format can visualized by ParaView the data type vtk...</div><div class="ttdef"><b>Definition:</b> in_output.h:174</div></div>
<div class="ttc" id="class_s_p_h_1_1_s_p_h_body_html_a76cf8eb34f36cd098f567268cc1c4354"><div class="ttname"><a href="class_s_p_h_1_1_s_p_h_body.html#a76cf8eb34f36cd098f567268cc1c4354">SPH::SPHBody::GetBodyName</a></div><div class="ttdeci">string GetBodyName()</div><div class="ttdef"><b>Definition:</b> base_body.cpp:64</div></div>
<div class="ttc" id="class_s_p_h_1_1_reload_particle_i_o_html"><div class="ttname"><a href="class_s_p_h_1_1_reload_particle_i_o.html">SPH::ReloadParticleIO</a></div><div class="ttdoc">For write and read particle reload. </div><div class="ttdef"><b>Definition:</b> in_output.h:423</div></div>
<div class="ttc" id="class_s_p_h_1_1_write_to_vtu_if_velocity_out_of_bound_html"><div class="ttname"><a href="class_s_p_h_1_1_write_to_vtu_if_velocity_out_of_bound.html">SPH::WriteToVtuIfVelocityOutOfBound</a></div><div class="ttdoc">output body sates if particle velocity is out of a bound </div><div class="ttdef"><b>Definition:</b> in_output.h:204</div></div>
<div class="ttc" id="class_s_p_h_1_1_gravity_html"><div class="ttname"><a href="class_s_p_h_1_1_gravity.html">SPH::Gravity</a></div><div class="ttdoc">The gravity force, derived class of External force. </div><div class="ttdef"><b>Definition:</b> external_force.h:52</div></div>
<div class="ttc" id="namespace_s_p_h_html"><div class="ttname"><a href="namespace_s_p_h.html">SPH</a></div><div class="ttdef"><b>Definition:</b> base_body_supplementary.cpp:11</div></div>
<div class="ttc" id="class_s_p_h_1_1_write_observed_diffusion_reaction_quantity_html"><div class="ttname"><a href="class_s_p_h_1_1_write_observed_diffusion_reaction_quantity.html">SPH::WriteObservedDiffusionReactionQuantity</a></div><div class="ttdoc">write the observed diffusion and reaction quantity to files. </div><div class="ttdef"><b>Definition:</b> in_output.h:299</div></div>
<div class="ttc" id="class_s_p_h_1_1_read_sim_body_states_html"><div class="ttname"><a href="class_s_p_h_1_1_read_sim_body_states.html">SPH::ReadSimBodyStates</a></div><div class="ttdoc">base class for read SimBody states. </div><div class="ttdef"><b>Definition:</b> in_output.h:156</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
